package com.raymond.entity.settlement;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.raymond.config.CustomerIntegerEnumDeserializer;
import com.raymond.config.CustomerIntegerEnumSerializer;
import com.raymond.entity.commons.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * desc-审批状态枚举
 *
 * @author houmenghe
 * @date 2025/04/21 17:05
 **/
@Getter
@AllArgsConstructor
@JsonDeserialize(using = CustomerIntegerEnumDeserializer.class)
@JsonSerialize(using = CustomerIntegerEnumSerializer.class)
public enum AuditStatusEnum implements BaseEnum {

    /**
     * 无需审批
     */
    NO_AUDIT(0, "无需审批"),

    /**
     * 审批中
     */
    AUDITING(1, "审批中"),

    /**
     * 审批拒绝
     */
    FAIL(2, "审批拒绝"),

    /**
     * 审批通过
     */
    PASS(3, "审批通过"),

    /**
     * 审批撤销
     */
    CANCEL(4, "审批撤销");

    private final Integer value;

    private final String desc;
}
